package com.myapp.ruyixing.http;

import java.util.List;

import org.json.JSONObject;

public class ScoreChangeDetailParser extends RYJSONParser {

	@Override
	public Object parse(JSONObject jsonObject) {
		if (getErrno(jsonObject) != NO_ERROR) {
			return null;
		}

		JSONObject data = jsonObject.optJSONObject("data");
		
		ScoreChangeDetail o = new ScoreChangeDetail();

		if (jsonObject != null) {
			o = loadByGson(data, ScoreChangeDetail.class);
		}

		return o;
	}
	
	public static class ScoreChangeDetail {
		public String goodsid;
		public String title;
		public String thumb;
		public String remain;
		public String price;
		public String codenumber;
		public String points;
		public String score;
		public String changetimes;
		public List<ScoreChangeDetailInfo> items;
	}
	
	public static class ScoreChangeDetailInfo {
		public String type;
		public String title;
		public String content;
		public String reviewnum;
		public String username;
		public int score;
		public String date;
		public String recordnum;
		public String changenum;
	}
}
